package com.topevery.yllhdemo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.topevery.yllhdemo.mapper.UmEventMapper;
import com.topevery.yllhdemo.model.UmEvent;
import com.topevery.yllhdemo.service.UmEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class UmEventServiceImpl extends ServiceImpl<UmEventMapper, UmEvent> implements UmEventService {

    @Autowired
    private UmEventMapper umEventMapper;

    public IPage<UmEvent> selectUserPage(Page<UmEvent> page, Integer state) {
        return umEventMapper.selectPageVo(page, state);
    }

    public IPage<UmEvent> selectPage2(Page<?> page, Map param){
        return umEventMapper.selectPage2(page,param);
    }
}
